package com.py.framework.entity;

import java.util.Date;

import com.py.framework.core.entity.BaseEntity;

import io.swagger.annotations.ApiModelProperty;

/**
 * 用户实体
 * 
 * @author Leegern
 * @date 2018年4月25日
 */
public class UserEntity extends BaseEntity {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -8332323868912249704L;
	/** 用户名 **/
	@ApiModelProperty(value = "用户名")
	private String username;
	/** 密码 **/
	@ApiModelProperty(value = "密码")
	private String password;
	/** 真实姓名 **/
	@ApiModelProperty(value = "真实姓名")
	private String realName;
	/** 角色名称 **/
	@ApiModelProperty(value = "角色名称")
	private String roleName;
	/** 性别，1：男，2：女 **/
	@ApiModelProperty(value = "性别，1：男，2：女")
	private int sex;
	/** 手机号 **/
	@ApiModelProperty(value = "手机号")
	private String mobilePhone;
	/** 部门ID **/
	@ApiModelProperty(value = "部门ID")
	private long officeId;
	/** 用户类型，1：普通用户，2：区域管理员，3：超级管理员 4:部门管理员 **/
	@ApiModelProperty(value = "用户类型，1：普通用户，2：区域管理员，3：超级管理员 4:部门管理员")
	private int userType;
	/** 用户状态，1：启用，2：停用 **/
	@ApiModelProperty(value = "用户状态，1：启用，2：停用")
	private int userStatus;
	/** 部门名称 **/
	@ApiModelProperty(value = "部门名称")
	private String officeName;
	/** 区域名称 **/
	@ApiModelProperty(value = "区域名称")
	private String areaName;
	/** 登录次数**/
	@ApiModelProperty(value = "登录次数")
	private int logTimes;
	/**错误时间**/
	@ApiModelProperty(value = "错误时间")
	private Date errorTime;
	/** 区域ID */
	@ApiModelProperty(value = "区域ID")
	private long areaId;
	/** 所有父节点ID */
	@ApiModelProperty(value = "所有父节点ID")
	private String allParentId;
	
	public Date getErrorTime() {
		return errorTime;
	}
	public void setErrorTime(Date errorTime) {
		this.errorTime = errorTime;
	}
	public int getLogTimes() {
		return logTimes;
	}
	public void setLogTimes(int logTimes) {
		this.logTimes = logTimes;
	}
	/**
	 * 所有父级部门id
	 */
	private String parentDeptId;

	public String getParentDeptId() {
		return parentDeptId;
	}

	public void setParentDeptId(String parentDeptId) {
		this.parentDeptId = parentDeptId;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username
	 *            the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the realName
	 */
	public String getRealName() {
		return realName;
	}

	/**
	 * @param realName
	 *            the realName to set
	 */
	public void setRealName(String realName) {
		this.realName = realName;
	}

	/**
	 * @return the sex
	 */
	public int getSex() {
		return sex;
	}

	/**
	 * @param sex
	 *            the sex to set
	 */
	public void setSex(int sex) {
		this.sex = sex;
	}

	/**
	 * @return the mobilePhone
	 */
	public String getMobilePhone() {
		return mobilePhone;
	}

	/**
	 * @param mobilePhone
	 *            the mobilePhone to set
	 */
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	/**
	 * @return the officeId
	 */
	public long getOfficeId() {
		return officeId;
	}

	/**
	 * @param officeId
	 *            the officeId to set
	 */
	public void setOfficeId(long officeId) {
		this.officeId = officeId;
	}

	/**
	 * @return the userType
	 */
	public int getUserType() {
		return userType;
	}

	/**
	 * @param userType
	 *            the userType to set
	 */
	public void setUserType(int userType) {
		this.userType = userType;
	}

	/**
	 * @return the userStatus
	 */
	public int getUserStatus() {
		return userStatus;
	}

	/**
	 * @param userStatus
	 *            the userStatus to set
	 */
	public void setUserStatus(int userStatus) {
		this.userStatus = userStatus;
	}

	/**
	 * @return the officeName
	 */
	public String getOfficeName() {
		return officeName;
	}

	/**
	 * @param officeName
	 *            the officeName to set
	 */
	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	/**
	 * @return the areaName
	 */
	public String getAreaName() {
		return areaName;
	}

	/**
	 * @param areaName
	 *            the areaName to set
	 */
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	/**
	 * @return the areaId
	 */
	public long getAreaId() {
		return areaId;
	}

	/**
	 * @param areaId
	 *            the areaId to set
	 */
	public void setAreaId(long areaId) {
		this.areaId = areaId;
	}

	public String getAllParentId() {
		return allParentId;
	}

	public void setAllParentId(String allParentId) {
		this.allParentId = allParentId;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
}